#include "vertex.h"




    vertex::vertex(void)
    {

    }

    vertex &vertex::operator() (v3d &pposition, sf::Color &pcol)
    {
        pos=pposition;
        col=pcol;
        return *this;
    }



    vertex &vertex::operator() (double x, double y, double z, int r, int g, int b)
    {

        pos.x=x;
        pos.y=y;
        pos.z=z;

        col.r=r;
        col.g=g;
        col.b=b;

        return *this;


    }

    vertex &vertex::operator() (int x, int y, int z, int r, int g, int b)
    {

        pos.x=x;
        pos.y=y;
        pos.z=z;

        col.r=r;
        col.g=g;
        col.b=b;

        return *this;

    }

    void vertex::add_normal(v3d &n)
    {
        normal=n;
    }

    void vertex::add_uvw(v3d &n)
    {
        uvw=n;
    }






